/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package globaltradutorap;

import java.util.ArrayList;
import java.util.List;
import javax.xml.ws.WebServiceRef;

/**
 *
 * @author Pedro
 */
public class Main {
    @WebServiceRef(wsdlLocation = "META-INF/wsdl/localhost_8080/gtWebService/gtWebService.wsdl")
    private static GtWebService_Service service;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException_Exception {
            
   int i=0;
           
        List<Object> Idioma = getIdiomaEntrada();
        
        System.out.println("Tamanho: "+Idioma.size());
        for(i=0;i<Idioma.size();i++){
            System.out.println("Idioma: "+Idioma.get(i).toString());
        }
            

    }

    private static java.util.List<java.lang.Object> getIdiomaEntrada() throws FileNotFoundException_Exception {
        // Note that the injected javax.xml.ws.Service reference as well as port objects are not thread safe.
        // If the calling of port operations may lead to race condition some synchronization is required.
        globaltradutorap.GtWebService port = service.getGtWebServicePort();
        return port.getIdiomaEntrada();
    }

    

  
   


}
